package org.lboot.ufs.event;

import lombok.Getter;
import org.lboot.ufs.entity.UfsFile;
import org.springframework.context.ApplicationEvent;

import java.time.Clock;

/**
 * @author kindear
 * 文件更新事件
 */
@Getter
public class UfsFileUpdateEvent extends ApplicationEvent {
    UfsFile newFile;
    UfsFile oldFile;
    public UfsFileUpdateEvent(Object source, UfsFile newFile, UfsFile oldFile) {
        super(source);
        this.newFile = newFile;
        this.oldFile = oldFile;
    }

    public UfsFileUpdateEvent(Object source, Clock clock) {
        super(source, clock);
    }

}
